package com.acc.store.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName shop_car
 */
@TableName(value ="shop_car")
@Data
public class ShopCar implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long shopCarId;

    /**
     * 
     */
    private Long productId;

    /**
     * 
     */
    private Integer num;

    /**
     * 
     */
    private BigDecimal price;

    /**
     * 
     */
    private String productName;

    /**
     * 
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long orderId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}